<template>
  <div class="form_making">
      <fm-making-form ref="makingform"
                      style="height: 700px;"
                      preview
                      upload
                      generate-code
                      generate-json>
      </fm-making-form>
  </div>
</template>

<script>
export default {
  props: {
    dialogData: {
      type: Object,
      default: function () {
        return { formTitle: '', description: '', createTime: '', formSchema: '' }
      }
    }
  },
  data () {
    return {
    }
  },
  methods: {
    queryMakingForm (schema) {
      if (schema) {
        if (this.$refs.makingform) {
          this.$refs.makingform.setJSON(schema)
        }
      }
    },
    getJson () {
      return this.$refs.makingform.getJSON()
    },
    clearMakingForm () {
      this.$refs.makingform.clear()
    }
  }
}
</script>
<style lang="scss">
.form_making footer {
  display: none;
}
</style>
